home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / mplus300.zip / 300-TXT.ZIP / RBBSQWK.BAT < prev    next >
DOS Batch File  |  1993-01-06  |  2KB  |  39 lines

  1. :
  2. : RBBSQWK.BAT (Optional) - Called by Mail Manager, to prepare QWK packet for
  3. :                          downloading.  If you allow your users to choose
  4. :                          archive methods, Mail Manager will have already
  5. :                          created the .QWK by the time this batch file is
  6. :                          executed.
  7. :
  8. : First command line parameter is base file name
  9. : Second command line parameter is archive method ZIP, ARJ, LZH, or ARC
  10. : Third command line parameter is node number (not used).
  11. :
  12. : Last updated for distribution 12/23/91 - Morrow & Wilson
  13. :
  14. : Compress the .QWK packet if it doesn't already exist.
  15. : ---------------------------------------------------------------------------
  16.   if exist %1.qwk GOTO END
  17.   if (%2)==(ZIP) pkzip -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  18.   if (%2)==(ARJ) arj a %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  19.   if (%2)==(LZH) lharc a -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  20.   if (%2)==(ARC) GOTO ARC
  21.   GOTO END
  22.  
  23. :ARC
  24. : ---------------------------------------------------------------------------
  25. : The old PKARC archiver does not allow you to specify files on the command
  26. : line that don't physically exist.  So for this archive method, we'll do a
  27. : check against each individual component of the package prior to attempting
  28. : to archive it.  The "-oc" in the command line specifies "old compatibility",
  29. : the "Crunch" method.
  30. : ----------------------------------------------------------------------------
  31.   if exist *.dat   pkarc -oc a %1.qwk *.dat
  32.   if exist *.ndx   pkarc -oc a %1.qwk *.ndx
  33.   if exist ???log  pkarc -oc a %1.qwk ???log
  34.   if exist door.id pkarc -oc a %1.qwk door.id
  35.   if exist news    pkarc -oc a %1.qwk news
  36.   if exist blt-*.* pkarc -oc a %1.qwk blt-*.*
  37.  
  38. :END
  39.